<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core">
<body>
<ui:composition>
	<h:form styleClass="headerForm" id="headerForm">
		<h:panelGrid columns="6" styleClass="panelStyle">
				<h:panelGrid columns="1">
					<h:message styleClass="validatorError" for="logName"></h:message>
					<h:message styleClass="validatorError" for="logPass"></h:message>
				</h:panelGrid>
				<h:outputText styleClass="outputLogReg" value="Name"></h:outputText>
				<h:inputText styleClass="inputLogReg" value="#{userBean.username}"  required="true" id="logName" requiredMessage="Username empty!"></h:inputText>
				<h:outputText styleClass="outputLogReg" value="Password"></h:outputText>
				
				<h:inputSecret styleClass="inputLogReg" value="#{userBean.password}" id="logPass">
					<f:validator validatorId="VAL_LOGIN"> </f:validator>
				</h:inputSecret>
				
				<h:commandButton styleClass="loginBtn" value="Login" action="#{userBean.loginUser}" type="submit" ></h:commandButton>
				
				
		</h:panelGrid>
	</h:form>
</ui:composition>
</body>
</html>
